<!-- extends表明此页面继承自 base.html 文件 -->
{% extends "usercenter-base.html" %}
{% load staticfiles %}
<!-- 写入 base.html 中定义的 title -->
{% block title %}
    我收藏的讲师
{% endblock title %}
<!-- 写入 base.html 中定义的 content -->
{% block content_user %}
    {# 讲师 #}
    <div class="column is-full">
        <div class="box">
            {% for teacher in teacher_list %}
                <div class="column is-3-desktop">
                        <div class="card">
                            <div class="card-content has-background-primary">
                                <div class="media">
                                    <div class="media-left">
                                        <figure class="image is-48x48">
                                            <a href="{% url 'org:teacher_detail' teacher.id %}">
                                                <img class="is-rounded"
                                                     src="{{ MEDIA_URL }}{{ teacher.avatar }}"
                                                     alt="Placeholder image">
                                            </a>
                                        </figure>
                                        </a>
                                    </div>
                                    <div class="media-content">
                                        <p class="title is-4">
                                            <a href="{% url 'org:teacher_detail' teacher.id %}"
                                               class="has-text-link-light">
                                                {{ teacher.name }}
                                            </a>
                                        </p>
                                        <p class="subtitle is-6">{{ teacher.characteristic }}</p>
                                    </div>
                                </div>
                            </div>
                            <div class="card-content columns is-multiline">
                                <div class="column is-full box has-background-primary">
                                    <strong>点击数<i class="fa fa-hand-pointer-o"
                                                  aria-hidden="true"></i>
                                        ：{{ teacher.click_nums }}</strong>
                                </div>
                                <div class="column is-full box has-background-primary">
                                    <strong>收藏数<i class="fa fa-star" aria-hidden="true"></i>
                                        ：{{ teacher.fav_nums }}</strong>
                                </div>
                                <div class="column is-full box has-background-primary">
                                    <strong>课程数<i class="fa fa-book" aria-hidden="true"></i>
                                        ：{{ teacher.course_nums }}</strong>
                                </div>
                                <div class="column is-full box has-background-primary">
                                    <strong>工作年限<i class="fa fa-sun-o" aria-hidden="true"></i>
                                        ：{{ teacher.work_years }}</strong>
                                </div>
                            </div>
                        </div>
                    </div>
            {% endfor %}
        </div>
    </div>
{% endblock %}

